package com.movie.modules.jf.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.movie.modules.jf.entity.ActorEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.movie.modules.jf.entity.MovieEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 演员表
 * 
 * @author kakarot
 * @email 532050892@qq.com
 * @date 2021-08-20 21:23:04
 */
@Mapper
public interface ActorDao extends BaseMapper<ActorEntity> {
	List<ActorEntity> getByMovieId(Integer id);
	IPage<ActorEntity> getActorByVipId(IPage<ActorEntity> page,@Param("vipId") Integer vipId);

	List<ActorEntity> getActorByVipAndActor(@Param("actorId") Integer actorId, @Param("vipId") Integer vipId);

	IPage<ActorEntity> getActorByVipAndActorList(IPage<ActorEntity> page, @Param("vipId") Integer vipId);

}
